import { Vector2 } from '../Math/Vector2'
import { Material } from './Material'
// 图片流动纹理
export class ImgFloorMaterial extends Material {
    readonly type: string
    ImgSize: Vector2
    ImgSpeed: Vector2
    ImgUrl: String
    constructor(ImgUrl: String, ImgSize: Vector2 = new Vector2(1,1), ImgSpeed: Vector2 = new Vector2(1,1)) {
        super()
        this.type = 'ImgFloorMaterial'
        this.ImgSize = ImgSize
        this.ImgSpeed = ImgSpeed
        this.ImgUrl = ImgUrl
    }
    // 设置图片尺寸
    setWidth(ImgSize: Vector2) {
        this.ImgSize = ImgSize
    }
    // 设置图片流动速度（x方向，y方向）
    setPower(ImgSpeed: Vector2) {
        this.ImgSpeed = ImgSpeed
    }
}